package com.gargi.crimepatrol.network;

import com.sun.lwuit.Image;

public class CrimePatrol {
	
	private String title;
	private String episodeName;
	private String description;
	private Image thumbnail;
	private String icon;
	private String streamingurl;
	private boolean loadingThumbnail;
	private boolean draft;
	
	public boolean isDraft() {
		return draft;
	}
	public void setDraft(boolean draft) {
		this.draft = draft;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getEpisodeName() {
		return episodeName;
	}
	public void setEpisodeName(String episodeName) {
		this.episodeName = episodeName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Image getThumbnail() {
		return thumbnail;
	}
	public void setThumbnail(Image thumbNail) {
		this.thumbnail = thumbNail;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public boolean isLoadingThumbnail() {
		return loadingThumbnail;
	}
	public void setLoadingThumbnail(boolean loadingThumbnail) {
		this.loadingThumbnail = loadingThumbnail;
	}
	public void loadImageFromUrl(ImageOperation.Listener listener, String url) {
		loadingThumbnail = true;
		new ImageOperation(listener, url).start();
	}
	public String getStreamingurl() {
		return streamingurl;
	}
	public void setStreamingurl(String streamingurl) {
		this.streamingurl = streamingurl;
	}
}
